package com.imooc.ecommerce;

import com.imooc.ecommerce.conf.DataSourceProxyAutoConfiguration;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.Import;

/**
 * 商品微服务启动入口
 * 启动依赖组件/中间件:redis+mysql+nacos
 * http://127.0.0.1:8001/ecommerce-goods-service/doc.html
 * @author zhangshao
 * @since 2023/11/29 21:26
 */
@SpringBootApplication
@EnableDiscoveryClient
@MapperScan(basePackages = {"com.imooc.ecommerce.mapper"})
@Import(DataSourceProxyAutoConfiguration.class)
public class GoodsApplication {
    public static void main(String[] args) {
        SpringApplication.run(GoodsApplication.class,args);
    }

}
